<%--
  Created by IntelliJ IDEA.
  User: sqluogui
  Date: 2016/10/18
  Time: 17:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title></title>
  <style type="text/css">
    div{background-color:#31B0D5;padding:25px;border-radius: 8px;width:70%;margin-left:auto;margin-right:auto;margin-top:200px;color:#eee;}
    body{text-align: center;margin:0;padding:0;background-color:#eee;}
    span{font-weight: bold;font-size:30px;color:red;}
    .title{font-size:30px;--margin-top:100px;}
  </style>
</head>
<body>
  <div>
    <p class="title">您未登录！</p>
    <p>页面将在&nbsp;<span id="endtime"></span>&nbsp;秒后跳转到,&nbsp;&nbsp;<a href="/login">登录页面！</a></p>
  </div>
</body>
</html>
<script type="text/javascript">
  var i = 10;
  function remainTime(){
    if(i==0){
      window.location.href = "/login";
    }
    document.getElementById('endtime').innerText=i--;
    setTimeout("remainTime()",1000);
  }
  remainTime();
</script>
